package main

import (
	"errors"
	"fmt"
)

type IPool interface {
	Get(num string) (string, error)
}

type Pool struct {
}

func (p Pool) Get(num string) (string, error) {
	fmt.Println(num)
	return num, errors.New("1")
}

func New() IPool {
	return &Pool{}
}

func main() {
	demo := []*Pool{
		{},
		{},
	}

	for i, _ := range demo {
		fmt.Println(i)
	}

}
